﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000443 RID: 1091
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterAdventureCsReq : IMessage<EnterAdventureCsReq>, IMessage, IEquatable<EnterAdventureCsReq>, IDeepCloneable<EnterAdventureCsReq>, IBufferMessage
	{
		// Token: 0x17000E0D RID: 3597
		// (get) Token: 0x06003111 RID: 12561 RVA: 0x000872DC File Offset: 0x000854DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterAdventureCsReq> Parser
		{
			get
			{
				return EnterAdventureCsReq._parser;
			}
		}

		// Token: 0x17000E0E RID: 3598
		// (get) Token: 0x06003112 RID: 12562 RVA: 0x000872E3 File Offset: 0x000854E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterAdventureCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E0F RID: 3599
		// (get) Token: 0x06003113 RID: 12563 RVA: 0x000872F5 File Offset: 0x000854F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterAdventureCsReq.Descriptor;
			}
		}

		// Token: 0x06003114 RID: 12564 RVA: 0x000872FC File Offset: 0x000854FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterAdventureCsReq()
		{
		}

		// Token: 0x06003115 RID: 12565 RVA: 0x00087304 File Offset: 0x00085504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterAdventureCsReq(EnterAdventureCsReq other) : this()
		{
			this.mapId_ = other.mapId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003116 RID: 12566 RVA: 0x00087329 File Offset: 0x00085529
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterAdventureCsReq Clone()
		{
			return new EnterAdventureCsReq(this);
		}

		// Token: 0x17000E10 RID: 3600
		// (get) Token: 0x06003117 RID: 12567 RVA: 0x00087331 File Offset: 0x00085531
		// (set) Token: 0x06003118 RID: 12568 RVA: 0x00087339 File Offset: 0x00085539
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MapId
		{
			get
			{
				return this.mapId_;
			}
			set
			{
				this.mapId_ = value;
			}
		}

		// Token: 0x06003119 RID: 12569 RVA: 0x00087342 File Offset: 0x00085542
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterAdventureCsReq);
		}

		// Token: 0x0600311A RID: 12570 RVA: 0x00087350 File Offset: 0x00085550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterAdventureCsReq other)
		{
			return other != null && (other == this || (this.MapId == other.MapId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600311B RID: 12571 RVA: 0x00087380 File Offset: 0x00085580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MapId != 0U)
			{
				num ^= this.MapId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600311C RID: 12572 RVA: 0x000873BF File Offset: 0x000855BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600311D RID: 12573 RVA: 0x000873C7 File Offset: 0x000855C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600311E RID: 12574 RVA: 0x000873D0 File Offset: 0x000855D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MapId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.MapId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600311F RID: 12575 RVA: 0x00087404 File Offset: 0x00085604
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MapId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MapId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003120 RID: 12576 RVA: 0x00087442 File Offset: 0x00085642
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterAdventureCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MapId != 0U)
			{
				this.MapId = other.MapId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003121 RID: 12577 RVA: 0x00087473 File Offset: 0x00085673
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003122 RID: 12578 RVA: 0x0008747C File Offset: 0x0008567C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MapId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001353 RID: 4947
		private static readonly MessageParser<EnterAdventureCsReq> _parser = new MessageParser<EnterAdventureCsReq>(() => new EnterAdventureCsReq());

		// Token: 0x04001354 RID: 4948
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001355 RID: 4949
		public const int MapIdFieldNumber = 11;

		// Token: 0x04001356 RID: 4950
		private uint mapId_;
	}
}
